<?
session_start();
define('_VIEW_MODEL_',"admin");
$time = $_SESSION['time'];
$name = $_SESSION['name'];
$statu = $_SESSION['statu'];
require_once '../init.php';
if(!$statu){
	echo "<script>window.parent.location.href='./index.php'</script>";
}
//echo "select count(id) from {$telper}mail where for='1' and state = 0";
$num  = $db->GetRow("select count(id) from {$telper}mail where `for`='1' and state = 0");
$nu   = !empty($num['count(id)'])?$num['count(id)']:0;
//echo $nu;
$admininfo = $db->GetRow("select * from {$telper}admin");
$smartyObj->assign("title",$admintitle);
$smartyObj->assign("pagecontetname",$admincontername);
$smartyObj->assign("adminname",$name);
$smartyObj->assign("logintime",$time);
$smartyObj->assign("num",$nu);
$smartyObj->display("adminconteral.tpl");
?>